package com.after.saas.oauth.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Classname UserDTO
 * @Description TODO
 * @auth after
 * @since 2023/3/26 19:43
 */
@Data
@NoArgsConstructor
public class UserDTO implements Serializable {
    private Long id;
    private String username;
    private String password;
    private Integer status;
    private String clientId;
    private List<String> roles;

    public UserDTO(String username, String password, List<String> roles) {
        this.username = username;
        this.password = password;
        this.roles = roles;
    }
}
